<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>
    <link rel="stylesheet" href="/static/aesst/css/pintuer.css">
    <link rel="stylesheet" href="/static/aesst/css/admin.css">
    <script src="/static/aesst/js/jquery.js"></script>
    <script src="/static/aesst/js/pintuer.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="/static/aesst/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />宏大考试系统-学生端</h1>
    </div>
</div>
<div class="panel admin-panel">
    <div class="panel-head"style="text-align:center;"><strong><a style="font-size:30px;"><?php echo $tes['title']?></a><a style="margin-left:100px">考试时间：<?php echo $tes['times']?>分钟</a><a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;剩余时间：<a id="demo">11</a>分钟<a id="demos"></a>秒</a></strong></div>
    <div class="panel-head">
        <a class="button border-main" href="<?php echo url("index/main/infoa"); ?>?number=<?php echo $number;?>"><strong> 单选题</strong></a>
        <a style="margin-left: 5px" class="button border-main" href="<?php echo url("index/infob/index"); ?>?number=<?php echo $number;?>"><strong> 多选题</strong></a>
        <a style="margin-left: 5px" class="button border-main" href="<?php echo url("index/infoc/index"); ?>?number=<?php echo $number;?>"><strong> 判断题</strong></a>
        <a style="margin-left: 5px" class="button border-main" href="<?php echo url("index/infod/index"); ?>?number=<?php echo $number;?>"><strong> 填空题</strong></a>
        <a style="margin-left: 5px" class="button border-main" href="<?php echo url("index/infoe/index"); ?>?number=<?php echo $number;?>"><strong> 解答题</strong></a>
        <a style="margin-left:50px" class="button border-yellow" href="<?php echo url("index/main/momo"); ?>"><strong> 试卷检查及提交</strong></a>
    </div>
    <div class="panel admin-panel">
        <div style="height:200px;">
            <div style="width:99%;float:left;margin-left:10px;margin-top: 10px" >
                <p style="font-size:20px;"> <strong>单选试题</strong></p>
                <?php foreach($testas as $key=>$testas): ?>
                    <a class="button border-main" href="<?php echo url("index/main/infoa")?>?nid=<?php echo $testas['nid']?>"><span class="icon-edit"></span> <?php echo $testas['nid'];?></a>
                <?php endforeach; ?>
                <?php echo $AS;?>
                <p style="font-size:20px;"><strong>已做试题</strong></p>
                <?php foreach($testa as $key=>$testa): ?>
                    <a class="button border-yellow" href="<?php echo url("index/main/infoa")?>?n=<?php echo $testa['n']?>"><span class="icon-check-square-o"></span> <?php echo $testa['n'];?></a>
                <?php endforeach; ?>
                <p><?php echo $testao;?></p>
            </div>
        </div>
        <div style="height:200px;">
            <div style="width:49%;float:left;margin-left: 10px;margin-top: 10px" >
                <p style="font-size:20px;"> <strong>多选试题</strong></p>
                <?php foreach($testbs as $key=>$testbs): ?>
                    <a class="button border-main" href="<?php echo url("index/infob/index")?>?nid=<?php echo $testbs['nid']?>"><span class="icon-edit"></span> <?php echo $testbs['nid'];?></a>
                <?php endforeach; ?>
                <?php echo $BS;?>
                <p style="font-size:20px;"><strong>已做试题</strong></p>
                <?php foreach($testb as $key=>$testb): ?>
                    <a class="button border-yellow" href="<?php echo url("index/infob/index")?>?n=<?php echo $testb['n']?>"><span class="icon-check-square-o"></span> <?php echo $testb['n'];?></a>
                <?php endforeach; ?>
                <p><?php echo $testbo;?></p>
            </div>
            <div style="width:49%;float:left;margin-left: 10px;margin-top: 10px" >
                <p style="font-size:20px;"> <strong>判断试题</strong></p>
                <?php foreach($testcs as $key=>$testcs): ?>
                    <a class="button border-main" href="<?php echo url("index/infoc/index")?>?nid=<?php echo $testcs['nid']?>"><span class="icon-edit"></span> <?php echo $testcs['nid'];?></a>
                <?php endforeach; ?>
                <?php echo $CS;?>
                <p style="font-size:20px;"><strong>已做试题</strong></p>
                <?php foreach($testc as $key=>$testc): ?>
                    <a class="button border-yellow" href="<?php echo url("index/infoc/index")?>?n=<?php echo $testc['n']?>"><span class="icon-check-square-o"></span> <?php echo $testc['n'];?></a>
                <?php endforeach; ?>
                <p><?php echo $testco;?></p>
            </div>
        </div>
        <div style="height:200px;" >
            <div style="width:49%;float:left;margin-left:10px;margin-top: 10px" >
                <p style="font-size:20px;"> <strong>填空试题</strong></p>
                <?php foreach($testds as $key=>$testds): ?>
                    <a class="button border-main" href="<?php echo url("index/infod/index")?>?nid=<?php echo $testds['nid']?>"><span class="icon-edit"></span> <?php echo $testds['nid'];?></a>
                <?php endforeach; ?>
                <?php echo $DS;?>
                <p style="font-size:20px;"><strong>已做试题</strong></p>
                <?php foreach($testd as $key=>$testd): ?>
                    <a class="button border-yellow" href="<?php echo url("index/infod/index")?>?n=<?php echo $testd['n']?>"><span class="icon-check-square-o"></span> <?php echo $testd['n'];?></a>
                <?php endforeach; ?>
                <p><?php echo $testdo;?></p>
            </div>
            <div style="width:49%;float:left;margin-left: 10px;margin-top: 10px">
                <p style="font-size:20px;"> <strong>简答试题</strong></p>
                <?php foreach($testes as $key=>$testes): ?>
                    <a class="button border-main" href="<?php echo url("index/infoe/index")?>?nid=<?php echo $testes['nid']?>"><span class="icon-edit"></span> <?php echo $testes['nid'];?></a>
                <?php endforeach; ?>
                <p><?php echo $ES;?></p>
                <p style="font-size:20px;"><strong>已做试题</strong></p>
                <?php foreach($teste as $key=>$teste): ?>
                    <a class="button border-yellow" href="<?php echo url("index/infoe/index")?>?n=<?php echo $teste['n']?>"><span class="icon-check-square-o"></span> <?php echo $teste['n'];?></a>
                <?php endforeach; ?>
                <p><?php echo $testeo;?></p>
            </div>
        </div>
    </div>
    <div class="panel-head">
        <p style="margin-left: 20px;color:red;font-size:15px">*建议在检查试题后再提交试卷</p>
    </div>
</div>
<div class="panel admin-panel">
    <p style="margin-left: 45%;margin-top: 10px;height:200px;"><a class="button border-main" href="<?php echo url("index/mark/doad");?>"><strong>提交试卷</strong></a></p>
</div>
<script  type="text/javascript">
    var lsecend = <?php echo $H;?>;
    var lsecends = <?php echo $i;?>;
    setInterval("myTimer()",1000)
    function myTimer() {
        lsecends = lsecends -1;
        lsecend = lsecend;
        console.log(lsecends);
        console.log(lsecend);
        if (lsecends < 0) {
            // 提交答题
            lsecend = lsecend -1;
            lsecends = 59;
        } else {
            // 页面显示剩余分秒
        }
        if (lsecend == 10 && lsecends==0) {
            alert("离考试结束还有十分钟");
        }
//        if (lsecend == 0 && lsecends==30) {
//            location.href="/index/mark/doad";
//        }
        document.getElementById("demo").innerHTML=lsecend;
        document.getElementById("demos").innerHTML=lsecends;
    }
</script>
</body></html>